package com.ruoyi.web.sso.common.util;

public class BusinessException extends RuntimeException {
    private String errorCode;

    public BusinessException(String errorCode) {
        this(errorCode, (String)null, (Throwable)null);
    }

    public BusinessException(String errorCode, String message) {
        this(errorCode, message, (Throwable)null);
    }

    public BusinessException(String errorCode, Throwable cause) {
        this(errorCode, (String)null, cause);
        this.errorCode = errorCode;
    }

    public BusinessException(String errorCode, String message, Throwable cause) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    public String toString() {
        return this.errorCode + " : " + super.toString();
    }

    public String getErrorCode() {
        return this.errorCode;
    }
}
